package com.pay.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Peng
 * @since 2018-12-15
 */
@TableName("t_cash_rule")
public class CashRule implements Serializable {

    private static final long serialVersionUID = 1L;

        /**
     * 提现规则
     */
         @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

        /**
     * 每笔提现最小金额
     */
         private BigDecimal minval;

        /**
     * 每笔提现最大金额
     */
         private BigDecimal maxval;

        /**
     * 提现手续费
     */
         private BigDecimal scale;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public BigDecimal getMinval() {
        return minval;
    }

    public void setMinval(BigDecimal minval) {
        this.minval = minval;
    }

    public BigDecimal getMaxval() {
        return maxval;
    }

    public void setMaxval(BigDecimal maxval) {
        this.maxval = maxval;
    }

    public BigDecimal getScale() {
        return scale;
    }

    public void setScale(BigDecimal scale) {
        this.scale = scale;
    }

    @Override
    public String toString() {
        return "CashRule{" +
        "id=" + id +
        ", minval=" + minval +
        ", maxval=" + maxval +
        ", scale=" + scale +
        "}";
    }
}
